//
//  SDCameraPreviewView.m
//  SKinDiary
//
//  Created by pcyang on 16/7/30.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import "SDCameraPreviewView.h"
@import AVFoundation;

@implementation SDCameraPreviewView
+ (Class)layerClass
{
    return [AVCaptureVideoPreviewLayer class];
}

- (AVCaptureSession *)session
{
    AVCaptureVideoPreviewLayer *previewLayer = (AVCaptureVideoPreviewLayer *)self.layer;
    return previewLayer.session;
}

- (void)setSession:(AVCaptureSession *)session
{
    AVCaptureVideoPreviewLayer *previewLayer = (AVCaptureVideoPreviewLayer *)self.layer;
    previewLayer.session = session;
}
@end
